package com.animations;

import com.beans.HrefBean;
import creator.ui.graphics.Magicanvas;
import creator.ui.graphics.polaroid.Animation;
import java.awt.Graphics;
import java.util.ArrayList;

public class HrefAction extends Animation {

  private HrefBean href;

  public void loadBean() {
    this.href = new HrefBean();
    getBeans().add(this.href);
  }

  public void paint(Graphics g) {
    g.drawImage(
      this.href.getHref(),
      this.href.getHrefX(),
      this.href.getHrefY(),
      getMagicanvas()
    );
  }

  public void run() {
    getMagicanvas().repaint();
  }
}
